/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.me.stepapp.persistence;

import java.util.List;

/**
 *
 * @author Amber
 */
public interface LocationDBInterface {

    Location getLocation(long id);

    long insertLocation(Location x);

    long insertLocation(String timestamp, String lattitude, String longitude);

    List<Location> retrieveAllLocations();

    List<Location> retrieveLocations(String where);

    boolean deleteAllLocations();

    boolean deleteLocation(Location x);

    boolean deleteLocation(long id);

    boolean updateLocation(long rowId, Location x);

    void onUpdateLocations();

}